<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改流程处理单元')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sewageFlow-edit" th:object="${sewageFlow}">
            <input id="flowId" name="flowId" th:field="*{flowId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label"><span style="color: red; ">*</span>单元所属系统：</label>
				<div class="col-sm-8">
          <select name="flowType" class="form-control m-b" th:with="type=${@dict.getType('tech_flow')}" required>
            <option value="">--请选择--</option>
            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:field="*{flowType}" th:value="${dict.dictValue}"></option>
          </select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label"><span style="color: red; ">*</span>单元名称：</label>
				<div class="col-sm-8">
					<input id="flowName" name="flowName" th:field="*{flowName}" class="form-control" type="text" maxlength="20" required>
				</div>
			</div>
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">CODcr：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="flowCodcr" name="flowCodcr" th:field="*{flowCodcr}" class="form-control" type="text" maxlength="4">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">NH4-N：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="flowNh4N" name="flowNh4N" th:field="*{flowNh4N}" class="form-control" type="text" maxlength="3">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">S：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="flowS" name="flowS" th:field="*{flowS}" class="form-control" type="text" maxlength="5">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">温度：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="flowTp" name="flowTp" th:field="*{flowTp}" class="form-control" type="text" maxlength="2">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">pH：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="flowPh" name="flowPh" th:field="*{flowPh}" class="form-control" type="text" maxlength="3">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">容积：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="flowVol" name="flowVol" th:field="*{flowVol}" class="form-control" type="text" maxlength="5">-->
<!--				</div>-->
<!--			</div>-->
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "sewage/sewageFlow";
		$("#form-sewageFlow-edit").validate({
			focusCleanup: true
		});
		
		function submitHandler() {
      if ($.validate.form()) {
          $.operate.save(prefix + "/edit", $('#form-sewageFlow-edit').serialize());
      }
    }
	</script>
</body>
</html>
